package com.mujin.keji.collectionsystem.base;

import android.arch.lifecycle.MutableLiveData;

/**
 * Repository基类
 *
 * @author weishixiong
 * @Time 2018-03-30
 */

public class BaseRepository<T> {
    private MutableLiveData<BaseDto<T>> data;

    public BaseRepository() {
        data = new MutableLiveData<>();
    }

    public MutableLiveData<BaseDto<T>> getData() {
        return data;
    }

    public void setData(BaseDto<T> t) {
        this.data.setValue(t);
    }
}
